body {
  color: #314659;
}

ul, li {
  list-style: none;
}

a {
  color: #314659;
  text-decoration: none;
}

.wrapper {
  width: 60%;
  min-width: 576px;
  margin: 0 auto;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-block;
  height: 40px;
  margin: 0 8px 0 0;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: 0;
  line-height: 1.5;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
  background-color: #fff;
  color: rgba(0,0,0,0.65);
  cursor: pointer;
}
.btn:hover {
  color: #1890ff;
  border-color: #1890ff;
}
.btn.btn-primary {
  color: #fff;
  background-color: #1890ff;
  border: 1px solid #1890ff;
}
.btn.btn-primary:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
}
.btn.btn-small {
  height: 32px;
  padding: 0 8px;
}
/* 提示信息 */
.message {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: rgba(0,0,0,0.65);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  transition: all linear 0.2s;
}

.tips {
  text-align: center;
  color: rgba(0,0,0,0.65);
}

/* 模态框 */
.modal {
  display: none;
  box-sizing: border-box;
  position: fixed;
  top: 100px;
  left: 50%;
  width: 480px;
  transform: translateX(-240px);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  line-height: 1.5;
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  background-color: #fff;
  z-index: 1000;
}
.modal .modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 4px 4px 0 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: rgba(0,0,0,0.65);
  background: #fff;
}
.modal .modal-body {
  padding: 24px 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.modal .modal-footer {
  padding: 12px 16px;
  text-align: right;
  background: transparent;
  border-top: 1px solid #e8e8e8;
  border-radius: 0 0 4px 4px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 18px;
  cursor: pointer;
}
.modal-mask {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  height: 100%;
  background-color: rgba(0,0,0,0.45);
}

/* markdown */
.markdown {
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
}
.markdown pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 3px;
}
.markdown code {
   font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
}
.markdown blockquote{
  padding: 0 1em;
  color: #6a737d;
  border-left: .25em solid #dfe2e5;
  margin: 10px 0;
}
.markdown ul {
  padding-left: 2em;
}
.markdown li{
  list-style: circle;
  margin: 5px 0;
}
/* 头部 */
.header {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .welcome {
  font-size: 18px;
  color: #1890ff;
}
.header .nav {
  display: flex;
  margin: 0;
  text-align: center;
}
.header .nav-item {
  position: relative;
  min-width: 76px;
  height: 64px;
  line-height: 64px;
  font-size: 16px;
  color: #314659;
}
.header .nav-item.active,
.header .nav-item:hover {
  color: #1890ff;
}
.header .nav-item > a {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.header .avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* 表单 */
.form {
  width: 100%;
  min-width: 420px;
  margin: 20px auto;
}
.form .form-item {
  position: relative;
  line-height: 40px;
  margin-bottom: 20px;
}
.form .form-item label {
  display: inline-block;
  width: 20%;
  text-align: right;
}
.form .form-item input, textarea {
  box-sizing: border-box;
  width: 78%;
  height: 32px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  resize:none
}
.form input.hidden {
  display: none;
}
.form .form-item textarea {
 height: 100%;
}
.form-vertical .form-item label {
  width: 100%;
  text-align: left;
}
.form-vertical .form-item input, textarea {
  width: 100%;
}
.form-login,
.form-register {
  width: 500px;
}
.form-register .preview {
  display: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* 文章列表 */
.list {
  padding: 0 16px;
  border: 1px solid #ebedf0;
  border-radius: 2px;
}
.list .list-item:last-child {
  border-bottom: none;
}
.list .list-item {
  padding: 16px 0;
  border-bottom: 1px solid #ebedf0;
}
.list .list-item-header {
  height: 42px;
  line-height: 42px;
  display: flex;
  align-items: center;
}
.list .list-item-header .avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}
.list .list-item-header .title {
  flex: 1;
  font-size: 16px;
  color: rgba(0,0,0,0.85);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.list .list-item-header .title a:hover {
  color: #1890ff;
}
.list .list-item-body {
  position: relative;
  max-height: 100px;
  margin: 12px 0;
  line-height: 1.5;
  font-size: 14px;
  word-wrap: break-word;
  text-align: justify;
  color: rgba(0,0,0,0.65);
  overflow: hidden;
}
.list .list-item-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(rgba(0,0,0, 0),rgba(255, 255, 255, 1));
}
.list .list-item-body .read {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  color: #1890ff;
}
.list .list-item-footer {
  height: 32px;
  line-height: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(0,0,0,0.45);
}
.list .list-item-footer span {
  display: inline-block;
  margin-right: 5px;
}

/* 文章详情 */
.card {
  padding: 12px;
  border: 1px solid #ebedf0;
  border-radius: 2px;
}
.card .card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.card .card-header .avatar {
  display: inline-block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.card .card-header .desc span {
  margin-right: 5px;
  color: rgba(0,0,0,0.45);
}
.card .card-body .title {
  color: rgba(0,0,0,0.85);
  text-align: center;
}
.card .card-body .content {
  padding: 12px 0;
  font-size: 16px;
  color: rgba(0,0,0,0.85);
  word-wrap: break-word;
  line-height: 1.5;
  text-align: justify;
}
.card .card-footer {
  padding: 10px 0;
  display: flex;
  justify-content: flex-end;
}
.card .card-footer .edit {
  cursor: pointer;
  color: #1890ff;
}
.card .card-footer .delete {
  cursor: pointer;
  margin-left: 20px;
  color: #ff4d4f;
}

/* 评论 */
.comment-wrapper {
  position: relative;
}
.comment-wrapper .more {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}
.comment-wrapper .form-vertical .form-item{
  margin-bottom: 5px;
}
.list.comment-list {
 padding: 10px;
 margin-bottom: 50px;
}
.list.comment-list .list-item {
  position: relative;
  padding: 10px 0 5px;
  display: flex;
}
.list.comment-list .list-item .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}
.list.comment-list .list-item-content{
  flex: 1;
}
.list.comment-list .list-item-content .name {
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  color: rgba(0,0,0,0.45);
}
.list.comment-list .list-item-content .comment {
  margin: 5px 0;
  font-size: 16px;
  color: rgba(0,0,0,0.65);
}
.list.comment-list .list-item-content .time {
  display: flex;
  justify-content: flex-end;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
.list.comment-list .delete-comment {
  position: absolute;
  top: 15px;
  right: 0;
  font-size: 12px;
  cursor: pointer;
  color: rgba(0,0,0,0.35);;
}

/* 分页 */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  user-select: none;
}